import request from '@/utils/requestMd5'

//获取客户菜单列表
export function menuType(params) {
  return request({
    url: '/company/menuType',
    method: 'get',
    params
  })
}
//根据不同类型获取菜单
export function menuList(params) {
  return request({
    url: '/company/menuList',
    method: 'get',
    params
  })
}

//菜单详情 
export function getMenuDetail(params) {
  return request({
    url: '/company/getMenuDetail',
    method: 'get',
    params
  })
}

//获取上级菜单列表
export function menuListByPid(params) {
  return request({
    url: '/company/menuListByPid',
    method: 'get',
    params
  })
}

//新增菜单
export function addMenu(data) {
  return request({
    url: '/company/addMenu',
    method: 'post',
    data
  })
}

//修改菜单
export function editMenu(data) {
  return request({
    url: '/company/editMenu',
    method: 'post',
    data
  })
}

//删除菜单
export function deleteMenu(params) {
  return request({
    url: '/company/deleteMenu',
    method: 'get',
    params
  })
}
